package com.dongdong.config;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer;

@Configuration
public class FreemarkerConfig {
    @Bean
    public FreeMarkerConfigurer freeMarkerConfigurer (){
        FreeMarkerConfigurer freeMarkerConfigurer =  new FreeMarkerConfigurer();
        freeMarkerConfigurer.setTemplateLoaderPath("classpath:freemarker");
        freeMarkerConfigurer.setDefaultEncoding("utf-8");
        return freeMarkerConfigurer;
    }
}
